package com.github.yoojia.flow.at;

import com.github.yoojia.flow.GeneralFlow;

import java.util.HashMap;
import java.util.Map;

import static com.github.yoojia.flow.at.ATEvents.success;

/**
 * @author 陈小锅 (yoojiachen@gmail.com)
 * @since 1.0.0
 */
final class VersionHandlerImpl implements AtHandler {

    private static final Map<String, Object> VERSION = new HashMap<>(1);

    static {
        VERSION.put("ver", GeneralFlow.VERSION);
        VERSION.put("build", "2017.10");
    }

    @Override
    public String handle(String... args) {
        return success(VERSION);
    }
}
